/**
 * 弹出框
 */
/**
 * 操作员新增修改查看页面
 * @param 
 */
function editOperatorInfo(operatorId) {
    var diag = new Dialog();
    diag.Width = 430;
    diag.Height = 380;
    if(operatorId=="add"){
    	diag.Title = "添加操作员";
    }else{
    	diag.Title = "修改操作员";
    }
    diag.URL = contextPath+"/manage/operatorInfo/edit?operatorId=" + operatorId;
    diag.show();
}
/**
 * 菜单新增修改查看页面
 * @param 
 */
function editMenus(menuId) {
    var diag = new Dialog();
    diag.Width = 430;
    diag.Height = 430;
    if(menuId=="-1"){
    	diag.Title = "添加菜单";
    }else{
    	diag.Title = "修改菜单";
    }
    diag.URL = contextPath+"/manage/menus/edit?menuId=" + menuId;
    diag.show();
}
/**
 * 角色新增修改查看页面
 * @param 
 */
function editRoles(roleId) {
	var diag = new Dialog();
	diag.Width = 430;
	diag.Height = 300;
	if(roleId=="-1"){
		diag.Title = "添加角色";
	}else{
		diag.Title = "修改角色";
	}
	diag.URL = contextPath+"/manage/roles/edit?roleId=" + roleId;
	diag.show();
}
/**
 * 统一的任务审核弹出界面
 * 任务审批
 * 所有任务的,所以要用不同的url
 * @param 
 */
function approveTaskAuditEdit(taskId,approveStatus) {
	var diag = new Dialog();
	diag.Width = 430;
	diag.Height = 300;
	if(approveStatus=="1"){
		diag.Title = "审核通过";
	}else{
		diag.Title = "审核拒绝";
	}
	diag.URL = contextPath+"/manage/todoTask/approveTaskAuditEdit?taskId="+taskId+"&approveStatus="+approveStatus;
	diag.show();
}
/**
 * 结算银行更换修改
 * @param 
 */
function settleCardChangeApplyTask(settleId) {
	var diag = new Dialog();
	diag.Width = 430;
	diag.Height = 300;
	diag.Title = "结算银行更换申请";
	diag.URL = contextPath+"/manage/todoTask/settleCardChangeApplyTask?settleId="+settleId;
	diag.show();
}
/**
 * 绑定指定商户
 * @param 
 */
function terminalBandingTask(terminalId) {
	var diag = new Dialog();
	diag.Width = 430;
	diag.Height = 300;
	diag.Title = "终端绑定申请";
	diag.URL = contextPath+"/manage/terminalInfo/terminalBandingTask?terminalId="+terminalId;
	diag.show();
}